package com.baizhi.dao;

import com.baizhi.entity.Banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2019/4/6.
 */
public interface BannerDao {

    List<Banner> selectAllBanner(@Param("begin")int begin,@Param("size")int size,@Param("bannerName")String bannerName);

    Integer selectAllBannerCount(@Param("bannerName")String bannerName);

    void addBanner(@Param("banner")Banner banner);

    void delatebanner(@Param("ids")Integer[] ids);

    void updateBanner(@Param("banner")Banner banner);


    List<Banner> selectHomePageBanner();
}
